package com.tzbank.common.hystrix;

import com.tzbank.utils.ResultCode;
import com.tzbank.utils.ResultUtil;
import com.tzbank.common.consumer.CommonServiceScheduler;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class CommonServiceHystrix implements CommonServiceScheduler {

    @Override
    public Map<String,Object> test() {
        return ResultUtil.resultMap("调用服务错误",ResultCode.RESUTL_CODE_FAILURE.code(),null);
    }
}
